Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(header): remove optimizations which are based on outdated assumptions #738

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

ADD-SP
Copy link
Contributor

@ADD-SP ADD-SP commented Dec 25, 2024

Summary

https://docs.rs/bytes/1.0.0/src/bytes/bytes_mut.rs.html#60-65

Now, bytes >= 1 has no inline optimization, so we can remove optimizations which based on outdated assumptions.

`HeaderValue` from integers

`::bytes::BytesMut >= 1` has no inline optimization
@ADD-SP ADD-SP changed the title refactor(header): remove BytesMut inline optimization when creating HeaderValue from integers refactor(header): remove optimizations which are based on outdated assumptions Dec 25, 2024
@seanmonstar seanmonstar merged commit 4e02046 into hyperium:master Dec 27, 2024
10 checks passed
@ADD-SP ADD-SP deleted the add_sp/refactor-simplify-code branch December 30, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants